cmake_minimum_required(VERSION 2.8)

message("-- Project: main")

file(GLOB main_src "*.cpp")

include_directories(
		${PROJECT_SOURCE_DIR}/include
		${PROJECT_SOURCE_DIR}/crt
		${PROJECT_SOURCE_DIR}/extensions/include
		${PROJECT_SOURCE_DIR}/extensions/include/platform
		${by3rd_library_include})

if (${WIN_OS})

	add_executable(main WIN32 ${main_src})
	target_link_libraries(main shlwapi)

else()

	include_directories(
		/usr/local/include
		/opt/local/include
		/usr/include
		)

	add_executable(main ${main_src})
	set_target_properties(main PROPERTIES COMPILE_FLAGS ${execute})
	set_target_properties(main PROPERTIES COMPILE_FLAGS ${compile})
	set_target_properties(main PROPERTIES LINK_FLAGS ${r_path})

	if(${LINUX_OS})
		target_link_libraries(main dl)
	endif()

	if(${UNIX_OS})
		target_link_libraries(main)
	endif()

endif()


set_target_properties(main PROPERTIES OUTPUT_NAME "main")
target_link_libraries(main stdcrt)







